package com.example.xksys.service.impl;

import com.example.xksys.mapper.CourseMapper;
import com.example.xksys.mapper.StudentMapper;
import com.example.xksys.service.CourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CourseServiceimpl implements CourseService {

    @Resource
    private CourseMapper courseMapper;
    @Override
    public List<Map<String, Object> > dosearch(Map<String, String> param) {
        return courseMapper.search(param);
    }

    @Override
    public int doadd_one(Map<String, String> param) {
        return courseMapper.add_one(param);
    }

    @Override
    public int dodelete_one(Map<String, String> param) {
        return courseMapper.delete_one(param);
    }
    @Override
    public List<Map<String, Object>> dohave(Map<String, String> param) {
        return courseMapper.have(param);
    }

}
